package com.mdlaser.sys.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zn
 * @since 2024-04-04
 */
@Getter
@Setter
@TableName("sys_user")
@Schema(name = "User", description = "$!{table.comment}")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "密码")
    @TableField("pass_word")
        private String passWord;

    @Schema(description = "昵称")
    @TableField("nick_name")
    private String nickName;

    @Schema(description = "部门")
    @TableField("department_id")
    private String departmentId;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "手机")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    @Schema(description = "帐号状态（0正常 1停用）")
    @TableField("status")
    private Integer status;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value ="update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
